package com.audaque.springboot.foshanupload.web.consuldemo.controller;

import com.audaque.springboot.foshanupload.core.enums.ResultCodeEnum;
import com.audaque.springboot.foshanupload.core.result.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zgb
 * @desc ...
 * @date 2023-08-01 18:44:57
 */
@RestController
public class FallBackController {

    @GetMapping("/fallback")
    public R fallback() {
        R<String> r = new R<>();
        r.setSuccess(false);
        r.setCode(ResultCodeEnum.FAILE.getCode());
        r.setMsg("consuldemo熔断");
      return r;
    }

}
